home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC World Interactive 7
/
PC World Interactive 7.iso
/
online
/
motor.EXE
/
MOM1.PAS
< prev
next >
Wrap
Pascal/Delphi Source File
|
1991-10-04
|
2KB
|
69 lines
begin
write('ѥ');
end.
:text;
s5,s :string;
str2,str1 :string[11];
STR3,STR4 :STRING[10];
STR5 :STRING[1];
STR6 :STRING[6];
x1,x2,x3,x4,x5 :integer;
y1,y2,y3,y4,y5,y6,y7,y8 :real;
begin
assign(f5,'dosya.dat');reset(f5);readln(f5,s);
ASSIGN(F3,s+'.F4F');
ASSIGN(F4,'MOM1.DAT');
REWRITE(F4);
RESET(F3);
x2:=1;
while not eof(f3) do
begin;
readln(f3,str2);
IF STR2=' ELEMENT ID' THEN
BEGIN;
READLN(F3,STR1);
READLN(F3,STR1);
readln(f3,x3,y3,y4);
READLN(F3,x1,y1,y2);
readln(f3,x4,y5,y6);
readln(f3,x5,y7,y8);
if (x3 = x2) then
begin;
writeln(f4,x3,' ',y3,' ',y4);
reset(f3);
x2:=x2+1;
end;
if (x1 = x2) then
begin;
WRITELN(F4,x1,' ',y1,' ',y2);
reset(f3);
x2:=x2+1;
end;
if (x4 = x2) then
begin;
writeln(f4,x4,' ',y5,' ',y6);
reset(f3);
x2:=x2+1;
end;
if (x5 = x2) then
begin;
writeln(f4,x5,' ',y7,' ',y8);
reset(f3);
x2:=x2+1;
end;
END;
end;
close(f3);close(f4);
END.
uses crt;
var
f3,f4,f5 :text;
s5,s :string;
str2,str1 :string[11];
STR3,STR4 :STRING[10];
STR5 :STRING[1];
STR6 :STRING[6];
x1,x2,x3,x4,x5 :integer;
y1,y2,y3,y4,y5,y6,y7,y8 :real;